package com.jdrx.sw.sewage.beans.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

@ApiModel(value = "AI预警")
@Data
public class ForecastPO {
    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "监控事件(1-泵堵)")
    private Integer monitorType;

    @ApiModelProperty(value = "预警等级(1-低 2-中 3-高)")
    private Integer forecastGrade;

    @ApiModelProperty(value = "站点id")
    private Long stationId;

    @ApiModelProperty(value = "预警信息")
    private String forecastInfo;

    @ApiModelProperty(value = "设备id")
    private Long deviceId;

    @ApiModelProperty(value = "预测开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime startTime;

    @ApiModelProperty(value = "数据节点")
    private String dataNode;

    @ApiModelProperty(value = "列表类型(1 - web 2-悬浮球)")
    private Integer type;

    @ApiModelProperty(value = "处理状态，目前用于web列表(1-未处理 2-已完成)")
    private Integer handleStatus;

    @ApiModelProperty(value = "当前风险值")
    private Double currentValue;
}